/*
 * Copyright (c) 2018 Hitevision
 */

package tw.com.hitevision.whiteboard.android.navigator;

import java.io.File;

import tw.com.hitevision.whiteboard.android.state.WhiteboardState;

public class Item {
    private final long stateId;
    private final String previewFile;

    private boolean isSelected;

    Item(WhiteboardState state) {
        stateId = state.getId();
        previewFile = state.getPreviewFile();
        isSelected = false;
    }

    Item(File file) {
        stateId = WhiteboardState.INVALID_ID;
        previewFile = file.getName();
        isSelected = false;
    }

    long getStateId() {
        return stateId;
    }

    public String getPreviewFile() {
        return previewFile;
    }

    public boolean isSelected() {
        return isSelected;
    }

    void setSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }
}